//
//  LMESchemeModel.h
//  WelfareManager
//
//  Created by longmin on 17/2/28.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "LMESchemeSet.h"
#import "LMESchemePageModel.h"

@interface LMESchemeModel : NSObject

//"e_scheme_id":"方案ID",
@property(nonatomic, strong) NSString *e_scheme_id;
//"scheme_domain":"方案域名",
@property(nonatomic, strong) NSString *scheme_url;
//"scheme_name":"方案名称",
@property(nonatomic, strong) NSString *scheme_name;
//"scheme_logo":"方案图标",
@property(nonatomic, strong) NSString *scheme_logo;
//"scheme_desc":"方案描述",
@property(nonatomic, strong) NSString *scheme_desc;
//"scheme_set":"方案配置",
@property(nonatomic, strong) LMESchemeSet *scheme_set;
//"page_list":[
//             {
//                 "e_scheme_page_id":"方案页ID",
//                 "e_scheme_id":"方案ID",
//                 "type":"类型：1，页面（自定义页面）2，首页  3，商品，4联系我们",
//                 "detail":"页面数据（json字符串）",
//                 "product_id":"商品ID，type=3时，才有数据",
//                 "love":"点赞数",
//                 "hate":"不点赞数"
//             }
//             ]
@property(nonatomic, strong) NSMutableArray <LMESchemePageModel *> *page_list;    //页面数据



/**
 添加商品页面
 
 @param goods 商品模型
 */
- (void)addPageWithGoods:(LMEGoodsModel *)goods;
/**
 添加商品page模型进page_list
 @param goodsList 商品模型数组
 */
- (void)addPageWithGoodsList:(NSArray <LMEGoodsModel *> *)goodsList;

/**
 获取商品列表
 
 */
- (NSMutableArray *)goodsList;

/**
 根据商品的新sort值进行排序
 */
- (void)sortGoods;

/**
 删除对应页码的页面,并重新排序
 */
- (void)removePageAtIndex:(NSInteger)index;

/**
 在相应索引插入一页
 */
- (void)insertPage:(LMESchemePageModel *)page AtIndex:(NSInteger)index;

@end
